package com.cfg.demo;

import com.cfg.AbstractServiceProxy;
import com.cfg.annotation.ServiceDynamicProxy;
import com.cfg.annotation.ServiceMethodDynamicProxy;

/**
 * @author <a href="15226116300@163.com">王廷俊</a>
 * @Description
 * @Date 2024-11-12
 */
@ServiceDynamicProxy(target = TestServiceImpl.class, desc = "测试动态代理")
public class TestServiceImpl2 extends AbstractServiceProxy implements TestService {
    
    
    @Override
    @ServiceMethodDynamicProxy(desc = "测试方法")
    public void test() {
        System.out.println("------我代理了 TestServiceImpl2.test()方法------");
        Object o = executeMethod();
        System.out.println("------我执行代理了 TestServiceImpl-----2.test()方法------");
    }
}
